package crazy.memory;

public class FinalTest
{
	public static void main(String[] args)
	{
		final int a = 5+2;
		final double b = 1.2/3;
		final String str = "crazy"+"java";
		final String book = "crazy java:"+99.0;
		
		final String book2 = "crazy java:" + String.valueOf(99.0);//显式将数值转换为字符串
		/*由于该变量的值需要用到String类的方法，所以无法再编译时确定下来。要再运行时才能确定下来。不会当成“宏变量”处理*/
		
		System.out.println(book == "crazy java:99.0");
		System.out.println(book2 == "crazy java:99.0");
	}
}
